/**
 * 日志类
 */
import hilog from '@ohos.hilog';
export class LogUtil {
  private static readonly TAG: string = "PILog";
  private static readonly DOMAIN: number = 0x6868;

  // 打印日志信息
  static info = (format: string, ...args: any[]) => {
    hilog.info(LogUtil.DOMAIN, LogUtil.TAG, format, args);
  }

  // 打印错误日志信息
  static error = (format: string, ...args: any[]) => {
    hilog.error(LogUtil.DOMAIN, LogUtil.TAG, format, args);
  }
}